#ifndef _REEMOON_RABBITMQ_H_
#define _REEMOON_RABBITMQ_H_

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include "rabbitmq-c/amqp.h"
#include "rabbitmq-c/tcp_socket.h"
#include "common.h"
#include "main.h"

extern bool RABBIT_STAUTS;

#define RABIITMQ_SENDER_ID "reemoon-exit-screen"

#define CMD_CHANGE_PRINT_MODE "change-print-mode"
#define CMD_PRINTER_CTRL "printer-start"

int rabbitmq_init(void) ;
int rabbitmq_deinit(void) ;

// 发送数据
int reemoon_msg_send(char *message);

void parseJson(const char *jsonString);
#endif